home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
n_b_v203.zip
/
APRINT.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
57 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME APRINT .DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
$STRING 8 ' for big ansi files
$INCLUDE "DAS-NB01.INC"
$INCLUDE "DAS-NBT0.INC" ' use "DAS-NBT0.INC" for mouse support
$INCLUDE "DAS-NBT1.INC"
COLOR 7, 0
CLS
? "┌────────────────────────────────────────────────────────────────────────
? "│ Aprint ( Ansi$ )
? "│ fAprintSet? ()
? "├─────────────────────────────────────────────────────────────────────────────
? "│ For quick, easy printing of ANSI encoded strings. ANSI.SYS needs not be
? "│ present but your program should make a one-time call to fAprintSet? to
? "│ insure that all internal variables are/have been set. fAprintSet? also
? "│ returns the current screen mode in case your program needs to check this.
? "│ The call to Aprint is then simple enough as printing starts at the top/left
? "│ of the screen for all strings. All ANSI escape codes are supported.
? "├─────────────────────────────────────────────────────────────────────────────
? "│ No mouse support has been added to this routine.
? "│ You can use MouseOFF and MouseON before/after the call.
? "└─────────────────────────────────────────────────────────────────────────────
fAprintSet ' set environment just in case
AnsiFile$ = "DMO\APRINT.ANS" ' fix this if necessary
IF DIR$( AnsiFile$ ) = "" THEN ' just a quick check if the file
PRINT "SORRY, CAN'T FIND APRINT.ANS" ' is there or not
END '
END IF '
'
OPEN "B", #1, AnsiFile$ ' open the file
GET$ #1, LOF(1), Ansi$ ' read the whole thing in
CLOSE ' close the file
Aprint "53HmPress
any keym to continue"
fAnyKey
CLS
'
Aprint Ansi$ ' print the screen
Tprint 25, 71, "Thank You!", 15